new Handle:g_InfoDelay = INVALID_HANDLE
new Handle:g_InfoDelay2 = INVALID_HANDLE
new Handle:timer1[MAXPLAYERS+1] = INVALID_HANDLE
new Handle:timer2[MAXPLAYERS+1] = INVALID_HANDLE

//---------------------------------------------//
// OpenFile and send the text to Player/Client //
//---------------------------------------------//
public Action:DO_InfoPlayer(Handle:timer, any:client)
{
	timer2[client] = INVALID_HANDLE

	new String:desc[1024]
	new Handle:inf = OpenFile("addons/sourcemod/configs/syn_info.txt", "rb")
	if (inf == INVALID_HANDLE){
		PrintToServer("[SYN] Failed to open file syn_info.txt!")
		return Plugin_Handled
	}

	ReadFileString(inf, desc, sizeof(desc), sizeof(desc))

	SendPanelToPlayer(client, desc)
	CloseHandle(inf)

	return Plugin_Handled	
}

//---------------------------------------------------//
// Creating the Panel and show them to Player/Client //
//---------------------------------------------------//
SendPanelToPlayer(client, String:message[])
{
	ReplaceString(message, 1024, "\\n", "\n")
	
	new Handle:mSayPanel = CreatePanel()
	DrawPanelText(mSayPanel, message)
	DrawPanelItem(mSayPanel, "", ITEMDRAW_SPACER)

	SetPanelCurrentKey(mSayPanel, 10)
	DrawPanelItem(mSayPanel, "Exit", ITEMDRAW_CONTROL)

	if(IsClientInGame(client) && IsClientConnected(client) && !IsFakeClient(client))
	{
		new showdelay = GetConVarInt(g_InfoDelay)
		if (showdelay > 0)
		{
			SendPanelToClient(mSayPanel, client, Handler_DoNothing, showdelay)
		}
	}
	CloseHandle(mSayPanel)
}

//---------------//
// Do nothing :) //
//---------------//
public Handler_DoNothing(Handle:menu, MenuAction:action, param1, param2)
{
	/* Do nothing */
}